package com.adcc.ags.gms.gw.entity;

import com.adcc.ags.gms.core.entity.BaseEntity;

import java.util.Date;

/**
 * 报文存储实体
 */
public class Traffic extends BaseEntity {

    // 报文存储id
    private long id;

    // 报文存储时间
    private Date dateTime;

    // 报文类型 Downlink，Uplink, Ground
    private String msgType;

    // 发送方
    private String sender;

    // 接收方
    private String receiver;

    // 报文原文
    private String rawMsg;

    // 报文部分1
    private String part1;

    // 报文部分2
    private String part2;

    // 报文部分3
    private String part3;

    // 报文部分4
    private String part4;

    // 报文部分5
    private String part5;

    // 状态--- 默认：F发送失败, S发送成功、W发送告警
    private String state;

    // 消息ID
    private String msgId;

    // 出错BGS用户ID
    private String errorUser_id;

    // 错误代码 ---1001消息验证异常代码，2001消息路由异常代码，3001消息发送异常代码
    private String error_code;

    /**
     * 构造函数
     */
    public Traffic() {
    }

    public Traffic(int id) {
        this.id = id;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Date getDateTime() {
        return dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getRawMsg() {
        return rawMsg;
    }

    public void setRawMsg(String rawMsg) {
        this.rawMsg = rawMsg;
    }

    public String getPart1() {
        return part1;
    }

    public void setPart1(String part1) {
        this.part1 = part1;
    }

    public String getPart2() {
        return part2;
    }

    public void setPart2(String part2) {
        this.part2 = part2;
    }

    public String getPart3() {
        return part3;
    }

    public void setPart3(String part3) {
        this.part3 = part3;
    }

    public String getPart4() {
        return part4;
    }

    public void setPart4(String part4) {
        this.part4 = part4;
    }

    public String getPart5() {
        return part5;
    }

    public void setPart5(String part5) {
        this.part5 = part5;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getErrorUser_id() {
        return errorUser_id;
    }

    public void setErrorUser_id(String errorUser_id) {
        this.errorUser_id = errorUser_id;
    }

    public String getError_code() {
        return error_code;
    }

    public void setError_code(String error_code) {
        this.error_code = error_code;
    }
}
